<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<!--     <link rel="shortcut icon" href="../../assets/ico/favicon.png"> -->

    <title>Trastienda</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap-3.1.1.css" rel="stylesheet" media="screen">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
    

  </head>
					
  
<script>
  
  function mostrarMensaje(){
	  resultado = "${resultado}";
	  if(resultado != ""){
		  alert(resultado);
	  }
	  
  }
  
</script>
  <body onload="mostrarMensaje();">
        
	  <!-- Static navbar -->
	  <div class="navbar navbar-default navbar-static-top">
	    <div class="container">
	      <div class="navbar-header">
	        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
	          <span class="icon-bar"></span>
	          <span class="icon-bar"></span>
	          <span class="icon-bar"></span>
	        </button>
	        <a class="navbar-brand" href="principal.jsp">Trastienda</a>
	      </div>
	      <div class="navbar-collapse collapse">
	        <ul class="nav navbar-nav">
	          <li><a href="principal.jsp">Inicio</a></li>
	          <li class="dropdown active">
	            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Mantenimientos <b class="caret"></b></a>
	             <ul class="dropdown-menu">
	              <li><a href="LoadRegistrarProfesorServlet?accion=listar">Profesores</a></li> 
	              <li><a href="LoadRegistrarCategoriaServlet?accion=listar">Categorias</a></li>	                        
	            </ul>
	          </li>
	          <li><a href="#">Reportes</a></li>	          
	          <li><a href="LogoutServlet">Salir</a></li>
	        </ul>
	      </div><!--/.nav-collapse -->
	    </div>
	  </div>
      
	 <div class="container"> 


<p><strong>Pago de Publicaciones &gt; Nuevo</strong></p>
<form id="form1" name="form1" method="post" action="RegistrarPublicacionPagoServlet" class="form-horizontal">
<input type="hidden" name="accion" value="${accion}"/>
<input type="hidden" name="idpublicacion" value="${idpublicacion}"/>
<input type="hidden" name="idprofesor" value="${idprofesor}"/>
<input type="hidden" name="estado" value="${estado}"/>
  <table width="600" height="104" border="1" cellpadding="0" cellspacing="0">
    <tr>
      <td>Profesor:</td>
      <td><label>
        <input type="text" name="nombreProfesor" id="nombreProfesor" readonly value="${nombreProfesor}" size=30 />
      </label></td>
    </tr>
    <tr>
      <td>Perfil del Profesor:</td>
      <td><label>
        <textarea name="perfil" id="perfil" disabled rows="10" maxlength="250">${perfil}</textarea>
      </label></td>
    </tr>
    <tr>
      <td>Categorias del Profesor :</td>
      <td><label>
        	<select multiple name="categorias" disabled>
        		<c:forEach var="vararrCategorias" items="${arrCategorias}">
					<option value ="<c:out value="${vararrCategorias.idcategoria}"/>">
					<c:out value="${vararrCategorias.nombre}"/>
					</option>
				</c:forEach>
			</select>
     </label></td>
    </tr>
    <tr>
      <td>Estado:</td>
      <td><label>
        ${estado}
      </label></td>
    </tr>
    <tr>
      <td>Paquete :</td>
      <td><label>
      	<select name="idpaquete" disabled>
        		<c:forEach var="vararrPaquete" items="${arrPaquete}">
					<option value ="<c:out value="${vararrPaquete.idparametro}"/>" <c:if test="${vararrPaquete.idparametro==idpaquete}">selected</c:if>>
					<c:out value="${vararrPaquete.nombre}"/>
					</option>
				</c:forEach>
			</select>
      </label></td>
    </tr>
    
    <tr>
      <td>Contenido :</td>
      <td><label>
      	<textarea name="texto" id="texto" rows="10" maxlength="250" disabled>${texto}</textarea>
      </label></td>
    </tr>
     <tr>
      <td>Monto a Pagar :</td>
      <td><label>
      	<input type="text" name="monto" id="monto" size ="7" readonly value="${monto}"> &nbsp;Nuevos Soles.
      </label></td>
    </tr>
    
    <c:if test="${estado == 'PENDIENTE'}">
	    <tr>
	      <td colspan="2">
	        <input type="submit" value="Guardar"/>
	        <input type="button" value="Regresar" onclick="window.location='roles_buscar.jsp' " />
	      </td>
	    </tr>-
    </c:if>
  </table> 
  
  
  <p>&nbsp;</p>
</form>


 <!-- Site footer -->
	   <div class="footer">
	   	 <p>&nbsp;</p>
	     <p>&copy; RCondezo 2014 </p>
	   </div>
	   
	 </div> <!-- /container -->
    
   


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.10.2.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap-3.1.1.js"></script>
  </body>
</html>